package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 专区
 * </p>
 *
 * @author 第五组
 * @since 2022-09-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_zone")
@ApiModel(value = "Zone对象", description = "专区")
public class Zone implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除(1:正常;0:禁用)")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty("是否启用")
    @TableField(fill = FieldFill.INSERT)
    private String isDisable;

    @ApiModelProperty("名称")
    private String zoneName;

    @ApiModelProperty("描述")
    private String zoneDesc;

    @ApiModelProperty("排序顺序")
    private Integer sort;

    @TableField(exist = false)
    private List<ZoneBusiness> zoneBusinesses;
}
